//
//  HeaderCollectionReusableView.m
//  B段项目
//
//  Created by 徐茂怀 on 15/11/11.
//  Copyright © 2015年 徐茂怀. All rights reserved.
//

#import "HeaderCollectionReusableView.h"
#import "FitHeader.h"
@implementation HeaderCollectionReusableView
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _titleLabel = [[UILabel alloc]init];
        _titleLabel.font = [UIFont fontWithName:@"Helvetica-LightOblique" size:18 * FitWidth];
        _titleLabel.text = @"有您喜欢的口味吗?没有再摇一摇试试吧";
        _titleLabel.textAlignment = NSTextAlignmentCenter;
        _titleLabel.backgroundColor = [UIColor colorWithRed:0.96 green:0.96 blue:0.95 alpha:1];
        [self addSubview:_titleLabel];
    }
    return self;
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    _titleLabel.frame = CGRectMake(0 * FitWidth, 0 * FitWidth, self.frame.size.width, self.frame.size.height);
}
@end
